package cn.smile.repository.notebook;

import cn.smile.bean.entity.notebook.Notebook;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface NotebookMapper extends BaseMapper<Notebook> {

    /**
     * 统计指定用户日记记录天数
     *
     * @param userId 用户ID
     * @return 记录天数
     */
    Integer countRecordDay(@Param(value = "userId") String userId);
}
